package top.go2do.common.enumeration;

/**
 * @Description
 * @Author xingyj
 * @CreateTime 2025/5/20 06:33
 */
public enum OperationType {
    CREATE_TAG("create", "tags"),
    UPDATE_TAG("update", "tags"),
    DELETE_TAG("delete", "tags");

    /**
     * 操作对象的类型，可以用表名
     */
    private final String targetType;

    /**
     * 操作类型：create、update、delete
     */
    private final String value;

    OperationType(String value, String targetType) {
        this.targetType = targetType;
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public String getTargetType() {
        return targetType;
    }
}
